﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace test_6_17
{
    public partial class Form8 : Form
    {
        public Form8()
        {
            InitializeComponent();
        }

        private void textBox5_TextChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            Area area = new Area(double.Parse(textBox1.Text), double.Parse(textBox2.Text), double.Parse(textBox3.Text), double.Parse(textBox4.Text));
            textBox5.Text = area.getS(double.Parse(textBox4.Text));
            textBox6.Text = area.getS(double.Parse(textBox3.Text), double.Parse(textBox2.Text), double.Parse(textBox1.Text));
            textBox7.Text = area.getS(double.Parse(textBox2.Text), double.Parse(textBox1.Text));
        }
    }
}
